package test.day12.test24;

class Animal {
    int m = 9;

    public int get(int n) {
        return n + m;
    }

    public int see(int n) {
        return n + m;
    }
}

class Dog extends Animal {
    int m = 18;

    public int get(int n) {
        return n + m;
    }
}

public class E {
    public static void main(String args[]) {
        Animal animal = null;
        Dog dog = new Dog();
        animal = dog;
        animal.m = 19;
        dog.m = 88;
        int result1 = animal.see(10);
        int result2 = animal.get(10);
        System.out.printf("%d:%d", result1, result2); //【代码】
    }
}
